import cn.jja8.networkTransmission.tool.ByteSegmentation;

import java.nio.charset.StandardCharsets;

public class 测试合并和拆分 {
    public static void main(String[] args) {
        ByteSegmentation.Byte2 byte2 = ByteSegmentation.拆分(ByteSegmentation.合成(
                "我好as54f6a2sadf4g23d4fg3a4g35dfg3s4f3as4dfas54dfs4dg545s6ds4f6帅啊".getBytes(StandardCharsets.UTF_8),
                "我是2a4g34adsg34da34fg3ad14g3ad1g34da3g4adf4g36d54fg3d4f3g54d5fg65dfg天才".getBytes(StandardCharsets.UTF_8)));
        System.out.println(new String(byte2.b1,StandardCharsets.UTF_8));
        System.out.println(new String(byte2.b2,StandardCharsets.UTF_8));


        ByteSegmentation.Byte2 asdfsdf = ByteSegmentation.拆分(ByteSegmentation.合成(new byte[4568],new byte[32468]));
        System.out.println(asdfsdf.b1.length);
        System.out.println(asdfsdf.b2.length);
    }
}
